﻿using System;
using System.Diagnostics;
using Autofac;
using Microsoft.Phone.Shell;
using Phoenix;
using Phoenix.Extensions.Transitions;

namespace PhoenixDebugPhoneApp
{
    public partial class App
    {
        public App()
        {
            InitializeComponent();

            if (Debugger.IsAttached)
            {
                Current.Host.Settings.EnableFrameRateCounter = true;

                PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
            }
        }

        protected override void ConfigurePhoenixHostBuilder(IPhoenixHostBuilder hostBuilder)
        {
            hostBuilder.SetNavigationFrameFactory(() => new TransitionNavigationFrame());
        }

        public override string DeveloperEmailAddress
        {
            get { return "jake.ginnivan@readify.net"; }
        }

        public override void WriteTrace(string formattedMessage, string category)
        {
            Debug.WriteLine(formattedMessage);
        }

        protected override void ConfigureContainer(ContainerBuilder containerBuilder)
        {
            
        }
    }
}